/**
 * @Copyright ®2015 Sinosoft Co. Ltd. All rights reserved.
 * 项目名称 : 三峡人寿业务前置平台系统
 * 创建日期 : 2016-12-09
 * 修改历史 :
 * 1. [2016-12-09]创建文件 by bianzb
 */
package com.sinosoft.sinopay.service.payrules.entry.facade;

import com.sinosoft.sinocloud.platform.common.exception.biz.SinoBizException;
import com.sinosoft.sinocloud.platform.common.exception.system.SinoSystemException;
import com.sinosoft.sinopay.payrules.dto.MerchantCheckDTO;
import com.sinosoft.sinopay.payrules.dto.MerchantNotifyDTO;
import com.sinosoft.sinopay.payrules.dto.PayChannelCheckDTO;
import com.sinosoft.sinopay.payrules.dto.PayRouteCheckDTO;
import com.sinosoft.sinopay.payrules.facade.PayRuleFacade;
import com.sinosoft.sinopay.service.payrules.biz.service.PayRuleCoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【支付规则微服务实现类】
 *
 * @author bianzb
 * @version 1.0
 * @date 2016-12-09 11:34
 */
@Service
public class PayRuleFacadeServiceImpl implements PayRuleFacade {
    @Autowired
    private PayRuleCoreService payRuleCoreService;

    @Override
    public void checkMerchant(MerchantCheckDTO merchantCheckDTO) throws SinoBizException, SinoSystemException {
         payRuleCoreService.checkMerchant(merchantCheckDTO);
    }

    @Override
    public PayRouteCheckDTO payRoute(PayRouteCheckDTO payRouteCheckDTO) throws SinoBizException, SinoSystemException {
        return payRuleCoreService.payRoute(payRouteCheckDTO);
    }

    @Override
    public void checkPayChannel(PayChannelCheckDTO payChannelCheckDTO) throws SinoBizException, SinoSystemException {
        payRuleCoreService.checkPayChannel(payChannelCheckDTO);
    }

    @Override
    public List<MerchantNotifyDTO> queryMerchantNotifyUrl(String merchantCode) throws SinoBizException, SinoSystemException {
        return payRuleCoreService.queryMerchantNotifyUrl(merchantCode);
    }
}
